
 
 o . f l o w 	 	 	 p a c k a g e :   n o n e 	 	 	 R   D o c u m e n t a t i o n 
 
 
 
 S h o w s   i f   t h e   o c u r r e n c e   o f   a   p h e n o m e n o n   o n   t h e   s u r f a c e   o f   a   c y l i n d e r   i s   r e l a t e d   t o   t h e   v e l o c i t y   o f   w a t e r   ( o r   a n o t h e r   f l u i d )   f l o w i n g   a r o u n d   i t ,   u s i n g   t h e   a n g l e   w h e r e   t h e   p h e n o m e n o n   o c c u r s .   
 
 
 
 
 
 D e s c r i p t i o n : 
 
 
 
 F i r s t ,   t h e   f u n c t i o n   d o e s   a   R a o ' s   T e s t   f o r   H o m o g e n e i t y ,   t o   d e t e r m i n e   i f   t h e r e   i s   d i r e c t i o n a l i t y .   T h i s   t e s t   i s   b a s e d   o n   t h e   i d e a   t h a t   i f   t h e   u n d e r l y i n g   d i s t r i b u t i o n   i s   u n i f o r m ,   s u c c e s s i v e   o b s e r v a t i o n s   s h o u l d   b e   a p p r o x i m a t e l y   e v e n l y   s p a c e d .   S e c o n d ,   t h e   f u n c t i o n   r e a l i z e s   a   c i r c u l a r   l i n e a r   m o d e l   ( l m . c i r c u l a r ( ) ,   " C i r c u l a r "   p a c k a g e ) ,   b e t w e e n   t h e   a n g l e s   a n d   t h e   e x p e c t e d   v e l o c i t y   o f   t h e   f l u i d   a t   e a c h   a n g l e   " u " ,   g i v e n   b y   t h e   f o l l o w i n g   f o r m u l a = 
 
 
 
 u =   2 U   s i n   
 
 
 
 W h e r e   " U "   i s   t h e   v e l o c i t y   o f   a n   u n i f o r m   s t r e a m e d   f l u i d ,   a n d   " "   i s   t h e   a n g l e   i n   d e g r e e s ,   f r o m   t h e   s t a g n a t i o n   p o i n t   ( 0   d e g r e e s ) .   T h e   v e l o c i t y   i s   i n v e r s e l y   r e l a t e d   t o   f l u i d   t e n s i o n   o n   t h e   s u r f a c e . 
 
 T h i s   f u n c t i o n   a l s o   c o m p a r e s   t h e   f r e c u e n c y   o f   t h e   o b s e r v e d   a n g l e s   w i t h   t h e   e x p e c t e d   f r e c u e n c y   ( W a t s o n ' s   T w o   S a m p l e   T e s t   o f   H o m o g e n e i t y   ( " c i r c u l a r "   p a c k a g e ) ) ,   i f   t h e   p h e n o m e n o n   i s   e x p e c t e d   t o   o c c u r r   a t   h i g h   o r   l o w   f l u i d   v e l o c i t y .   F i n a l l y ,   i t   m a k e s   a   r o s e   d i a g r a m   s h o w i n g   t h e   o b s e r v e d   a n d   e x p e c t e d   f r e c u e n c i e s . 
 
 
 
 U s a g e : 
 
 
 
 o . f l o w ( x , z )   
 
 
 
 A r g u m e n t s : 
 
 
 
 x 	 L i s t   o f   a n g l e s   f r o m   a n   o b s e r v e d   e v e n t   o n   a   c y l i n d e r   s u r f a c e . 
 
 z 	 S h o w s   i f   t h e   p h e n o m e n o n   i s   e x p e c t e d   t o   o c c u r   i n   h i g h   o r   l o w   v e l o c i t y . 
 
 
 
 D e t a i l s 
 
 
 
 V a l u e   o f   t h e   a r g u m e n t   " z "   i s   e i t h e r   " 1 "   f o r   e x p e c t e d   f r e c u e n c y   a t   h i g h   v e l o c i t y ,   o r   " 2 "   f o r   e x p e c t e d   f r e c u e n c y   a t   l o w   v e l o c i t y .   
 
 
 
 V a l u e 
 
 
 
 
 
 N U L L 
 
 
 
 W a r n i n g 
 
 
 
 N U L L 
 
 
 
 N o t e .   
 
 
 
 R e q u i e r e s   t h e   P a c k a g e   ' C i r c u l a r ' 
 
 
 
 A u t h o r : 
 
 
 
 A n d r  s   R o j a s   V a l l e 
 
 a n d r e s r o v a @ g m a i l . c o m 
 
 
 
 R e f e r e n c e s : 
 
 B r e n n e n ,   C .   E .   2 0 0 6 .   I n t e r n e t   B o o k   o n   F l u i d   D y n a m i c s .   h t t p : / / b r e n n e n . c a l t e c h . e d u / f l u i d b o o k / b a s i c f l u i d d y n a m i c s / p o t e n t i a l f l o w / s i n g u l a r i t i e s / c y l i n d e r . p d f 
 
 
 
   L e v i t i n ,   D .   J .   a n d     G . S .   R u s s e l l .   1 9 9 7 .     E n c y c l o p e d i a   o f   S t a t i s t i c a l   S c i e n c e s ,   K o t z ,   S .   a n d   R e a d ,   C .   B .   [ E d s . ] ,   N e w   Y o r k :     J o h n   W i l e y   &   S o n s 
 
 
 
 
 
 
 
 # E x a m p l e s : 
 
 
 
 